﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataMode;

//这里是数据库层接口

namespace IDAL
{
    public interface IMessage
    {
        IOrderedQueryable GetMessagesByVideoID(int videoID);

        IOrderedQueryable GetMessagesByVideoIDOnePage(int videoID, int startNum, int takeNum);

        message GetMessageByMessageID(int messageID);

        int GetMessagesNumByVideoID(int videoID);

        void InsertMessage(message msg);

        void DeleteMessageByMessageID(int messageID);

        string GetUserNameOfMessage(int messageID);

        int GetUserIDByUserName(string username);

        IOrderedQueryable GetReceiveMessages(string userName);

        IOrderedQueryable GetSentMessages(string userName);
    }
}
